<template>
  <!-----------楼层区域部分开始------------->
  <div class="floor">
    <!--楼层-->
    <div class="heart electrical">
      <!--标题部分-->
      <div class="box_hd">
        <h3>{{ list.name }}</h3>
        <div class="tab_list">
          <ul>
            <li v-for="(navlist, index) in list.navList" :key="index">
              <a :href="navlist.url" class="style_red">{{ navlist.text }}</a>
            </li>
          </ul>
        </div>
      </div>
      <!--主题部分-->
      <div class="box_bd">
        <div class="tab_content">
          <div class="tab_list_item">
            <div class="col1">
              <a href="#"><img :src="list.bigImg1" alt="图片加载失败" /></a>
            </div>
            <div class="col1">
              <a href="#"><img :src="list.bigImg2" alt="图片加载失败" /></a>
            </div>
            <div class="col1-1">
              <div
                class="col2"
                v-for="recom in list.recommendList"
                :key="recom.id"
              >
                <a href="#" class="title">
                  <span class="maintitle">{{ recom.text }}</span>
                  <span class="asidetitle">{{ recom.recomtext }}</span>
                </a>
                <div class="little_things">
                  <a href="#"
                    ><img :src="recom.recomimg1" alt="图片加载失败"
                  /></a>
                  <a href="#"
                    ><img :src="recom.recomimg2" alt="图片加载失败"
                  /></a>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-----------楼层区域部分结束------------->
</template>

<script>
export default {
  name: "",
  props: ["list"],
};
</script>

<style lang="css" scoped>
.electrical {
  margin-top: 30px;
}
.electrical .box_hd {
  height: 30px;
  border-bottom: 2px solid #e2231a;
}
.box_hd h3 {
  float: left;
  font-size: 18px;
  color: #e2231a;
  font-weight: 400;
}
.tab_list {
  float: right;
  line-height: 30px;
}
.tab_list li {
  float: left;
}
.tab_list li::after {
  content: "|";
  color: #e2231a;
  padding: 0 10px;
}
.tab_list li:last-child::after {
  content: "";
  padding: 0;
}
.box_bd {
  min-height: 380px;
}
.tab_list_item > div {
  float: left;
}
.tab_list_item .col1 {
  width: 290px;
  height: 370px;
  text-align: center;
  margin-right: 10px;
  margin-bottom: 10px;
}
.tab_list_item .col1-1 {
  width: 600px;
  height: 370px;
  margin-bottom: 10px;
}
.tab_content img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.tab_list_item .col2 {
  float: left;
  width: 290px;
  height: auto;
  margin: 0 4px 25px 6px;
}
.tab_list_item .col2 .title {
  display: block;
  width: 250px;
  height: 30px;
  margin-left: 30px;
  line-height: 30px;
  margin-top: 17px;
  margin-bottom: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col2 .title .maintitle {
  font-size: 22px;
  font-weight: 700;
  color: #333;
}
.col2 .title .asidetitle {
  font-size: 14px;
  color: #999;
  margin-left: 5px;
}
.little_things {
  width: 100%;
  height: 100px;
}
.little_things img {
  width: 100px;
  margin: 0 15px;
}
</style>
